import request from '@/utils/request'
//考场列表
export function examplace(data) {
    return request({
      url: 'examplace',
      method: 'get',
      params: data,
      headers: {
        showLoading: true
      }
    })
  }
//考场新增
export function examplaceCreate(data) {
    return request({
      url: 'examplace/create',
      method: 'post',
      data,
      headers: {
        showLoading: false
      }
    })
  }
//考场详情
export function examplaceRead(data) {
    return request({
      url: 'examplace/read',
      method: 'get',
      params: data,
      headers:{
        'showLoading':true,
        'loadingTarget':'.innerLoding'
      }
    })
  }
//考场编辑
export function examplaceUpdate(data) {
    return request({
      url: 'examplace/update',
      method: 'put',
      data,
      headers: {
        showLoading: false
      }
    })
  }
//考场删除
export function examplaceDelete(data) {
    return request({
      url: 'examplace/delete',
      method: 'delete',
      data,
      headers: {
        showLoading: false
      }
    })
  }
//发布
export function examplaceUpdatestatus(data) {
    return request({
      url: 'examplace/updatestatus',
      method: 'put',
      data,
      headers: {
        showLoading: false
      }
    })
  }
//获取城市
export function commonGetCity(data) {
    return request({
      url: 'common/getCity',
      method: 'get',
      params: data,
      headers: {
        showLoading: false
      }
    })
  }
//获取更新人下拉
export function userOption(data) {
    return request({
      url: 'user/option',
      method: 'get',
      params: data,
      headers: {
        showLoading: false
      }
    })
  }






